email me at borlaj@portlandschools.org

Loading
notes previous (11/<11) submit the dump links  
 

Post MoleMash Worksheet

Discuss the following questions with a partner or small group. Jot down answers as you discuss, and email me the answers at borlaj@portlandschools.org


  1. What function blocks can you use to move an image sprite within the canvas? What are the function's parameters?
  2. If you didn't have a MoveTo block, what blocks could you use to move the mole?
  3. What is the unit of measurement for location on the canvas?
  4. The Mole could be moved to a random place on the Canvas with the following blocks:


a. Explain the blocks in English. Why is the subtraction performed?

b. The X and Y property of an image sprite specify the location of the sprite. But a sprite is not a single point, so what does X and Y really denote?

c. How is color defined in App Inventor? How is it defined in HTML?

5. The MoleMash tutorial (pdf) has you define a procedure.

a. Name it.
b. Could you write the MoleMash app without defining the procedure?
c. Why do you think the procedure was defined?

6. Which blocks increment (add a point to) the score in MoleMash. How would you subtract?

7. When a row of blocks is performed, in what order are they performed?

8. Coordinate question:

In the picture below:


If the canvas is 300 by 300 (meaning the upper left is 0,0 and the lower right is 300,300)

a. What is the coordinate of the lower left corner:

b. What is the coordinate of the upper left dot: